
local require = require
local ns_acc_config0 = require( "modules.data_cache.config.db_acc_config0")
local ns_subsp_config0 = require( "modules.data_cache.config.db_subsp_config0")

local const_ = {
	auth = 'xZtXkxJFyhHbfSbOXs6NflySwUHGCnLI',

	posting_ip_01234 = '10.104.212.48',
	posting_ip_56789 = '10.104.145.12',

	subsp_ip = "10.135.54.196",


	---map profile
	map_ip0 = "10.135.159.88",     --data - 0
	map_ip1 = "10.104.1.190",      --data - 1
	map_ip2 = "10.135.68.153",     --data - 2
	map_ip3 = "10.104.2.92",       --data - 3
	map_ip4 = "10.104.170.163",    --data - 4
	map_ip5 = "10.104.139.227",    --data - 5
	map_ip6 = "10.104.174.74",     --data - 6
	map_ip7 = "10.104.19.195",     --data - 7
	map_ip8 = "10.104.227.7",      --data - 8
	map_ip9 = "10.104.137.152",    --data - 9


	ma_ip0  = '10.104.216.182',     --0
	ma_ip1c = '10.104.50.195',      --1c
    ma_ip2  = '10.20.10.15',        --2
    ma_ip3  = '10.20.10.185',       --3
	ma_ip4  = '10.104.160.150',     --4
	ma_ip5  = '10.104.59.109',      --5
	ma_ip6  = '10.135.153.77',      --6
	ma_ip7  = '10.104.37.112',      --7
    ma_ip8  = '10.20.10.23',        --8
	ma_ip9  = '10.104.23.191',      --9


	mission_ip0  = '10.20.60.15',      --0
	mission_ip1c = '10.20.60.4',       --1c
	mission_ip2  = '10.20.60.17',      --2
	mission_ip3  = '10.20.60.12',      --3
	mission_ip4  = '10.20.60.6',       --4

	mission_ip5  = '10.20.60.32',      --5
	mission_ip6  = '10.20.60.37',      --6
	mission_ip7  = '10.20.60.45',      --7
	mission_ip8  = '10.20.60.44',      --8
	mission_ip9  = '10.20.60.33',      --9


	gc_ip01 = "10.104.0.239",     --01
	gc_ip02 = "10.104.49.172",    --23

	gc_ip03 = "10.104.44.204",    --45
	gc_ip04 = "10.104.13.101",    --67
	gc_ip05 = "10.104.5.127",     --89
	gc_ip06 = "10.104.13.123",    --01
	gc_ip07 = "10.104.149.173",   --23
	gc_ip08 = "10.104.57.60",     --45
	gc_ip09 = "10.104.61.57",     --67
	gc_ip10 = "10.104.0.197",     --89


	cm_ip1 = "10.104.131.247",
	cm_ip2 = "10.104.137.161",

	bp_ip1 = "10.20.20.3",      --- "42.193.152.219",
	bp_ip2 = "10.20.20.17",     --- "81.71.123.244",
	bp_ip3 = "10.20.60.13",    ---81.71.71.59 
	bp_ip4 = "10.20.60.7",		---106.52.242.136

	bu_ip1 = "192.168.1.79",	--124.71.86.34
	bu_ip2 = "192.168.1.23",	--124.71.26.139
	bu_ip3 = "192.168.1.40",	--124.71.120.176
	bu_ip4 = "192.168.1.155",	--124.71.120.108
	bu_ip5 = "192.168.1.11",	--124.71.120.243


	punisher_ip1 = "192.168.0.109",     --- 124.71.96.103   192.168.0.109
	punisher_ip2 = "192.168.0.234",     --- 139.159.253.147 192.168.0.234

	team_ip1 = "192.168.2.169", -- 124.71.120.245
	team_ip2 = "192.168.2.100", -- 124.71.120.20
	--- account dc huawei-yun
	acc_ip1 = "192.168.0.226",  --124.71.12.240  _192.168.0.226
	acc_ip2 = "192.168.0.8",    --121.37.5.38    _192.168.0.8
	acc_ip3 = "192.168.0.38",   --121.37.22.93   _192.168.0.38
	acc_ip4 = "192.168.0.40",   --124.71.70.149  _192.168.0.40
	acc_ip5 = "192.168.0.23",   --139.159.204.94 _192.168.0.23

	--manor dc huawei_yun  lee
	manor_ip0 = "192.168.0.187", 	-- //121.37.247.45
	manor_ip1 = "192.168.0.238", 	-- //139.9.210.2  
	manor_ip2 = "192.168.0.181",  	-- //124.71.2.225 
	manor_ip3 ="192.168.0.231", --manor-ssdb4           139.9.214.16     [root] 192.168.0.231  华为云                                                                                                                             
	manor_ip4 ="192.168.0.241", --manor-ssdb5           139.9.185.221    [root] 192.168.0.241  华为云                                                                                                                             
	manor_ip5 ="192.168.0.141", --manor-ssdb6           139.9.4.150      [root] 192.168.0.141  华为云                                                                                                                             
	manor_ip6 ="192.168.0.6", --manor-ssdb7           139.9.0.213      [root] 192.168.0.6   华为云                                                                                                                              
	manor_ip7 ="192.168.0.49", --manor-ssdb8           121.37.3.214     [root] 192.168.0.49  华为云                                                                                                                              
	manor_ip8 ="192.168.0.232", --manor-ssdb9           121.37.222.110   [root] 192.168.0.232  华为云 
	manor_ip9 ="192.168.0.24", --manor-ssdb10          124.71.25.105    [root] 192.168.0.24  华为云

	posting_redis_ip = "192.168.1.61", --华为云
	--business_welfare dc huaweiyun lee
	business_welfare_ip0 = "192.168.2.125", --124.71.120.86
	business_welfare_ip1 = "192.168.2.3",  --124.71.120.55
	--business_advert dc huaweiyun zour
	business_advert_ip1 = "192.168.2.42", 	--124.71.120.209
	business_advert_ip2 = "192.168.2.39",  	--124.71.120.238
	business_advert_ip3 = "192.168.2.123",  --124.71.120.115
	business_advert_ip4 = "192.168.2.206",  --124.71.120.106
	business_advert_ip5 = "192.168.2.95",  	--124.71.120.176	
	business_advert_ip6 = "192.168.2.225", 	--124.71.120.220
	business_advert_ip7 = "192.168.2.209",  --124.71.120.97
	business_advert_ip8 = "192.168.2.252",  --124.71.120.92
	business_advert_ip9 = "192.168.2.102",  --124.71.120.2
	business_advert_ip10 = "192.168.2.170", --124.71.120.152	

	business_mall_ip0   = "192.168.2.35",
	business_mall_ip1   = "192.168.2.53",
};


local ns_config = {
	_VERSION = '0.12.1',
	__DAY_TIME__    = 86400,


	ssdb = {
		posting = {
			ssdb_server = {
				[0] = { ip = const_.posting_ip_01234, port = 17260, auth = const_.auth, },
				[1] = { ip = const_.posting_ip_01234, port = 17261, auth = const_.auth, },
				[2] = { ip = const_.posting_ip_01234, port = 17262, auth = const_.auth, },
				[3] = { ip = const_.posting_ip_01234, port = 17263, auth = const_.auth, },
				[4] = { ip = const_.posting_ip_01234, port = 17264, auth = const_.auth, },

				[5] = { ip = const_.posting_ip_56789, port = 17265, auth = const_.auth, },
				[6] = { ip = const_.posting_ip_56789, port = 17266, auth = const_.auth, },
				[7] = { ip = const_.posting_ip_56789, port = 17267, auth = const_.auth, },
				[8] = { ip = const_.posting_ip_56789, port = 17268, auth = const_.auth, },
				[9] = { ip = const_.posting_ip_56789, port = 17269, auth = const_.auth, },
			},

			ssdb_db_select = {
				[0]=0, [1]=1, [2]=2, [3]=3, [4]=4, [5]=5, [6]=6, [7]=7, [8]=8, [9]=9,
			},
		},


		subsp = {
			ssdb_server = {
				[0] = { ip = const_.subsp_ip, port = 18100, auth = const_.auth, },
				[1] = { ip = const_.subsp_ip, port = 18101, auth = const_.auth, },
				[2] = { ip = const_.subsp_ip, port = 18102, auth = const_.auth, },
				[3] = { ip = const_.subsp_ip, port = 18103, auth = const_.auth, },
				[4] = { ip = const_.subsp_ip, port = 18104, auth = const_.auth, },
				[5] = { ip = const_.subsp_ip, port = 18105, auth = const_.auth, },
				[6] = { ip = const_.subsp_ip, port = 18106, auth = const_.auth, },
				[7] = { ip = const_.subsp_ip, port = 18107, auth = const_.auth, },
				[8] = { ip = const_.subsp_ip, port = 18108, auth = const_.auth, },
				[9] = { ip = const_.subsp_ip, port = 18109, auth = const_.auth, },
			},

			ssdb_db_select = {
				[0]=0, [1]=1, [2]=2, [3]=3, [4]=4, [5]=5, [6]=6, [7]=7, [8]=8, [9]=9,
			},
		},


		rcm = {		-- 未再使用
			ssdb_server = {
				[0] = { ip = const_.subsp_ip, port = 17280, auth = const_.auth, },
				[1] = { ip = const_.subsp_ip, port = 17281, auth = const_.auth, },
				[2] = { ip = const_.subsp_ip, port = 17282, auth = const_.auth, },
				[3] = { ip = const_.subsp_ip, port = 17283, auth = const_.auth, },
				[4] = { ip = const_.subsp_ip, port = 17284, auth = const_.auth, },
				[5] = { ip = const_.subsp_ip, port = 17285, auth = const_.auth, },
				[6] = { ip = const_.subsp_ip, port = 17286, auth = const_.auth, },
				[7] = { ip = const_.subsp_ip, port = 17287, auth = const_.auth, },
				[8] = { ip = const_.subsp_ip, port = 17288, auth = const_.auth, },
				[9] = { ip = const_.subsp_ip, port = 17289, auth = const_.auth, },
			},

			ssdb_db_select = {
				[0]=0, [1]=1, [2]=2, [3]=3, [4]=4, [5]=5, [6]=6, [7]=7, [8]=8, [9]=9,
			},
		},


		map = {
			ssdb_server = {
				[0] = {	 ip = const_.map_ip0,    port = 17200,  auth=const_.auth, },
				[1] = {	 ip = const_.map_ip1,    port = 17201,  auth=const_.auth, },
				[2] = {	 ip = const_.map_ip2,    port = 17202,  auth=const_.auth, },
				[3] = {	 ip = const_.map_ip3,    port = 17203,  auth=const_.auth, },
				[4] = {	 ip = const_.map_ip4,    port = 17204,  auth=const_.auth, },
				[5] = {	 ip = const_.map_ip5,    port = 17205,  auth=const_.auth, },
				[6] = {	 ip = const_.map_ip6,    port = 17206,  auth=const_.auth, },
				[7] = {	 ip = const_.map_ip7,    port = 17207,  auth=const_.auth, },
				[8] = {	 ip = const_.map_ip8,    port = 17208,  auth=const_.auth, },
				[9] = {	 ip = const_.map_ip9,    port = 17209,  auth=const_.auth, },
			},

			ssdb_db_select = {
				[0]=0, [1]=1, [2]=2, [3]=3, [4]=4, [5]=5, [6]=6, [7]=7, [8]=8, [9]=9,
			},

			ip_allow = { check = 2,
				list = '10.104.170.163 10.104.4.88 10.135.155.111 10.104.2.92 10.104.19.246'
						.. ' 10.135.159.88 10.20.10.31 10.20.10.49 10.20.10.87'
						.. ' 10.20.10.32 10.20.10.77 10.104.1.190 10.135.68.153'
						.. ' 10.20.10.21 10.20.10.58 10.20.10.34 10.20.10.166 10.20.10.104'
						.. ' 10.20.30.66 10.20.30.12 10.20.30.42 10.20.30.93'
					    .. ' 10.104.139.227 10.104.174.74 10.104.19.195 10.104.227.7 10.104.137.152',
			},
		},

		map_kvx = {
			ssdb_server = {
				[0] = {	 ip = '10.135.155.111',  port = 17250,  auth=const_.auth, },
				[1] = {	 ip = '10.135.155.111',  port = 17251,  auth=const_.auth, },

				[2] = {	 ip = '10.20.10.31',     port = 17252,  auth=const_.auth, },
				[3] = {	 ip = '10.20.10.31',     port = 17253,  auth=const_.auth, },
				[4] = {	 ip = '10.20.10.31',     port = 17254,  auth=const_.auth, },

				[5] = {	 ip = '10.104.4.88',     port = 17255,  auth=const_.auth, },
				[6] = {	 ip = '10.104.4.88',     port = 17256,  auth=const_.auth, },

				[7] = {	 ip = '10.20.10.49',     port = 17257,  auth=const_.auth, },
				[8] = {	 ip = '10.20.10.49',     port = 17258,  auth=const_.auth, },
				[9] = {	 ip = '10.20.10.49',     port = 17259,  auth=const_.auth, },
			},
			ssdb_db_select = {
				[0]=0, [1]=1, [2]=2, [3]=3, [4]=4, [5]=5, [6]=6, [7]=7, [8]=8, [9]=9,
			},
		},


		cm = {
			ssdb_server = {
				[0] = {	 ip = const_.cm_ip1,    port = 18200,  auth=const_.auth, },
				[1] = {	 ip = const_.cm_ip1,    port = 18201,  auth=const_.auth, },
				[2] = {	 ip = const_.cm_ip1,    port = 18202,  auth=const_.auth, },
				[3] = {	 ip = const_.cm_ip1,    port = 18203,  auth=const_.auth, },
				[4] = {	 ip = const_.cm_ip1,    port = 18204,  auth=const_.auth, },

				[5] = {	 ip = const_.cm_ip2,    port = 18205,  auth=const_.auth, },
				[6] = {	 ip = const_.cm_ip2,    port = 18206,  auth=const_.auth, },
				[7] = {	 ip = const_.cm_ip2,    port = 18207,  auth=const_.auth, },
				[8] = {	 ip = const_.cm_ip2,    port = 18208,  auth=const_.auth, },
				[9] = {	 ip = const_.cm_ip2,    port = 18209,  auth=const_.auth, },
			},

			ssdb_db_select = {
				[0]=0, [1]=1, [2]=2, [3]=3, [4]=4, [5]=5, [6]=6, [7]=7, [8]=8, [9]=9,
			},
		},

		battlepass ={
			ssdb_server = {
				[0] = {	 ip = const_.bp_ip3,    port = 9000,  auth=const_.auth, },


				[1] = {	 ip = const_.bp_ip1,    port = 9001,  auth=const_.auth, },
				[2] = {	 ip = const_.bp_ip1,    port = 9002,  auth=const_.auth, },



				[3] = {	 ip = const_.bp_ip2,    port = 9003,  auth=const_.auth, },
				[4] = {	 ip = const_.bp_ip2,    port = 9004,  auth=const_.auth, },


				[5] = {	 ip = const_.bp_ip3,    port = 9005,  auth=const_.auth, },
				[6] = {	 ip = const_.bp_ip3,    port = 9006,  auth=const_.auth, },

				[7] = {	 ip = const_.bp_ip4,    port = 9007,  auth=const_.auth, },
				[8] = {	 ip = const_.bp_ip4,    port = 9008,  auth=const_.auth, },
				[9] = {	 ip = const_.bp_ip4,    port = 9009,  auth=const_.auth, },
			},
			ssdb_db_select = {
				[0]=0, [1]=1, [2]=2, [3]=3, [4]=4, [5]=5, [6]=6, [7]=7, [8]=8, [9]=9,
			}
		},


		punisher = {
			ssdb_server = {
				[0] = {	 ip = const_.punisher_ip1,    port = 18300,  auth=const_.auth, },
				[1] = {	 ip = const_.punisher_ip1,    port = 18301,  auth=const_.auth, },
				[2] = {	 ip = const_.punisher_ip1,    port = 18302,  auth=const_.auth, },
				[3] = {	 ip = const_.punisher_ip1,    port = 18303,  auth=const_.auth, },
				[4] = {	 ip = const_.punisher_ip1,    port = 18304,  auth=const_.auth, },

				[5] = {	 ip = const_.punisher_ip2,    port = 18305,  auth=const_.auth, },
				[6] = {	 ip = const_.punisher_ip2,    port = 18306,  auth=const_.auth, },
				[7] = {	 ip = const_.punisher_ip2,    port = 18307,  auth=const_.auth, },
				[8] = {	 ip = const_.punisher_ip2,    port = 18308,  auth=const_.auth, },
				[9] = {	 ip = const_.punisher_ip2,    port = 18309,  auth=const_.auth, },

				[11] = { ip = const_.punisher_ip1,    port = 18311,  auth=const_.auth, },
			},

			ssdb_db_select = {
				[0]=0, [1]=1, [2]=2, [3]=3, [4]=4, [5]=5, [6]=6, [7]=7, [8]=8, [9]=9, comm=11,
			},
		},


		rent = {
			ssdb_server = {
				[0] = { ip = const_.posting_ip_01234, port = 17270, auth = const_.auth, },
				[1] = { ip = const_.posting_ip_01234, port = 17271, auth = const_.auth, },
				[2] = { ip = const_.posting_ip_01234, port = 17272, auth = const_.auth, },
				[3] = { ip = const_.posting_ip_01234, port = 17273, auth = const_.auth, },
				[4] = { ip = const_.posting_ip_01234, port = 17274, auth = const_.auth, },

				[5] = { ip = const_.posting_ip_56789, port = 17275, auth = const_.auth, },
				[6] = { ip = const_.posting_ip_56789, port = 17276, auth = const_.auth, },
				[7] = { ip = const_.posting_ip_56789, port = 17277, auth = const_.auth, },
				[8] = { ip = const_.posting_ip_56789, port = 17278, auth = const_.auth, },
				[9] = { ip = const_.posting_ip_56789, port = 17279, auth = const_.auth, },
			},

			ssdb_db_select = {
				[0]=0, [1]=1, [2]=2, [3]=3, [4]=4, [5]=5, [6]=6, [7]=7, [8]=8, [9]=9,
			},
		},


		ma = {
			ssdb_server = {
				[0] = {	 ip = const_.ma_ip0,   port = 17100,  auth=const_.auth, },
				[1] = {	 ip = const_.ma_ip1c,  port = 17101,  auth=const_.auth, },
				[2] = {	 ip = const_.ma_ip2,   port = 17102,  auth=const_.auth, },
				[3] = {	 ip = const_.ma_ip3,   port = 17103,  auth=const_.auth, },
				[4] = {	 ip = const_.ma_ip4,   port = 17104,  auth=const_.auth, },
				[5] = {	 ip = const_.ma_ip5,   port = 17105,  auth=const_.auth, },
				[6] = {	 ip = const_.ma_ip6,   port = 17106,  auth=const_.auth, },
				[7] = {	 ip = const_.ma_ip7,   port = 17107,  auth=const_.auth, },
				[8] = {	 ip = const_.ma_ip8,   port = 17108,  auth=const_.auth, },
				[9] = {	 ip = const_.ma_ip9,   port = 17109,  auth=const_.auth, },
				[11] = { ip = const_.ma_ip1c,  port = 17111,  auth=const_.auth, },
			},


			ssdb_db_select = {
				[0]=0, [1]=1, [2]=2, [3]=3, [4]=4, [5]=5, [6]=6, [7]=7, [8]=8, [9]=9, comm=11,
			},
		},


		mission = {
			ssdb_server = {
				[0] = {	 ip = const_.mission_ip0,   port = 17100,  auth=const_.auth, },
				[1] = {	 ip = const_.mission_ip1c,  port = 17101,  auth=const_.auth, },
				[2] = {	 ip = const_.mission_ip2,   port = 17102,  auth=const_.auth, },
				[3] = {	 ip = const_.mission_ip3,   port = 17103,  auth=const_.auth, },
				[4] = {	 ip = const_.mission_ip4,   port = 17104,  auth=const_.auth, },

				[5] = {	 ip = const_.mission_ip5,   port = 17105,  auth=const_.auth, },
				[6] = {	 ip = const_.mission_ip6,   port = 17106,  auth=const_.auth, },
				[7] = {	 ip = const_.mission_ip7,   port = 17107,  auth=const_.auth, },
				[8] = {	 ip = const_.mission_ip8,   port = 17108,  auth=const_.auth, },
				[9] = {	 ip = const_.mission_ip9,   port = 17109,  auth=const_.auth, },
			},
			ssdb_db_select = {
				[0]=0, [1]=1, [2]=2, [3]=3, [4]=4, [5]=5, [6]=6, [7]=7, [8]=8, [9]=9, comm=1,
			},
		},


		accUinInfo = {
			ssdb_server = {
				[0]  = { ip = const_.acc_ip1,    port = 18500,  auth=const_.auth, },
				[1]  = { ip = const_.acc_ip1,    port = 18501,  auth=const_.auth, },
				[2]  = { ip = const_.acc_ip2,    port = 18502,  auth=const_.auth, },
				[3]  = { ip = const_.acc_ip2,    port = 18503,  auth=const_.auth, },
				[4]  = { ip = const_.acc_ip3,    port = 18504,  auth=const_.auth, },
				[5]  = { ip = const_.acc_ip3,    port = 18505,  auth=const_.auth, },
				[6]  = { ip = const_.acc_ip4,    port = 18506,  auth=const_.auth, },
				[7]  = { ip = const_.acc_ip4,    port = 18507,  auth=const_.auth, },
				[8]  = { ip = const_.acc_ip5,    port = 18508,  auth=const_.auth, },
				[9]  = { ip = const_.acc_ip5,    port = 18509,  auth=const_.auth, },
			},
			ssdb_db_select = {
				[0]=0, [1]=1, [2]=2, [3]=3, [4]=4, [5]=5, [6]=6, [7]=7, [8]=8, [9]=9,
			},
		},
		business = {
			ssdb_server = {
				[0] = {	 ip = const_.bu_ip1,    port = 9100,  auth=const_.auth, }, -- "192.168.1.79",	--124.71.86.34
				[1] = {	 ip = const_.bu_ip1,    port = 9101,  auth=const_.auth, }, -- "192.168.1.79",	--124.71.86.34
				
				--"192.168.1.40",	--124.71.120.173
				[2] = {	 ip = const_.bu_ip3,    port = 9102,  auth=const_.auth, }, -- "192.168.1.79",	--124.71.86.34
				[3] = {	 ip = const_.bu_ip3,    port = 9103,  auth=const_.auth, }, -- "192.168.1.79",	--124.71.86.34
				
				--"192.168.1.11",	--124.71.120.243
				[4] = {	 ip = const_.bu_ip5,    port = 9104,  auth=const_.auth, }, -- "192.168.1.79",	--124.71.86.34

				[5] = {	 ip = const_.bu_ip2,    port = 9105,  auth=const_.auth, }, --"192.168.1.23",	--124.71.26.139
				[6] = {	 ip = const_.bu_ip2,    port = 9106,  auth=const_.auth, }, --"192.168.1.23",	--124.71.26.139
				
				-- "192.168.1.155",	--124.71.120.108
				[7] = {	 ip = const_.bu_ip4,    port = 9107,  auth=const_.auth, }, --"192.168.1.23",	--124.71.26.139 
				[8] = {	 ip = const_.bu_ip4,    port = 9108,  auth=const_.auth, }, --"192.168.1.23",	--124.71.26.139
				
				--"192.168.1.11",	--124.71.120.243
				[9] = {	 ip = const_.bu_ip5,    port = 9109,  auth=const_.auth, }, --"192.168.1.23",	--124.71.26.139

				[11] = { ip = const_.bu_ip1,    port = 9100,  auth=const_.auth, },
			},
			ssdb_db_select = {
				[0]=0, [1]=1, [2]=2, [3]=3, [4]=4, [5]=5, [6]=6, [7]=7, [8]=8, [9]=9,comm=11,
			},
		},
        gchat = {

			ssdb_server = {
				[0] = {	 ip = const_.gc_ip01,    port = 17100,  auth=const_.auth, },
				[1] = {	 ip = const_.gc_ip01,    port = 17101,  auth=const_.auth, },
				[2] = {	 ip = const_.gc_ip01,    port = 17102,  auth=const_.auth, },
				[3] = {	 ip = const_.gc_ip01,    port = 17103,  auth=const_.auth, },
				[4] = {	 ip = const_.gc_ip01,    port = 17104,  auth=const_.auth, },

				[5] = {	 ip = const_.gc_ip02,    port = 17105,  auth=const_.auth, },
				[6] = {	 ip = const_.gc_ip02,    port = 17106,  auth=const_.auth, },
				[7] = {	 ip = const_.gc_ip02,    port = 17107,  auth=const_.auth, },
				[8] = {	 ip = const_.gc_ip02,    port = 17108,  auth=const_.auth, },
				[9] = {	 ip = const_.gc_ip02,    port = 17109,  auth=const_.auth, },

				[11] = { ip = const_.gc_ip01,    port = 17101,  auth=const_.auth, },
			},

			ssdb_db_select = {
				[0]=0, [1]=1, [2]=2, [3]=3, [4]=4, [5]=5, [6]=6, [7]=7, [8]=8, [9]=9, comm=11,
			},
		},


		manor =
		{

			ssdb_server =
			{
				[0] = {	 ip = const_.manor_ip0,    port = 17100,  auth=const_.auth, },
				[1] = {	 ip = const_.manor_ip1,    port = 17101,  auth=const_.auth, },
				[2] = {	 ip = const_.manor_ip2,    port = 17102,  auth=const_.auth, },

				[3] = {	 ip = const_.manor_ip3,    port = 17103,  auth=const_.auth, },
				[4] = {	 ip = const_.manor_ip4,    port = 17104,  auth=const_.auth, },
				[5] = {	 ip = const_.manor_ip5,    port = 17105,  auth=const_.auth, },

				[6] = {	 ip = const_.manor_ip6,    port = 17106,  auth=const_.auth, },
				[7] = {	 ip = const_.manor_ip7,    port = 17107,  auth=const_.auth, },
				[8] = {	 ip = const_.manor_ip8,    port = 17108,  auth=const_.auth, },
				[9] = {	 ip = const_.manor_ip9,    port = 17109,  auth=const_.auth, },

				[11] = { ip = const_.manor_ip1,    port = 17101,  auth=const_.auth, },
			},

			ssdb_db_select = {
				[0]=0, [1]=1, [2]=2, [3]=3, [4]=4, [5]=5, [6]=6, [7]=7, [8]=8, [9]=9, comm=11,
			},
		},

		anti_addiction = 
		{
			ssdb_server =
			{
				--跟家园db放一起,端口不一样
				[0] = {	 ip = const_.manor_ip0,    port = 16100,  auth=const_.auth, },
				[1] = {	 ip = const_.manor_ip1,    port = 16101,  auth=const_.auth, },
				[2] = {	 ip = const_.manor_ip2,    port = 16102,  auth=const_.auth, },

				[3] = {	 ip = const_.manor_ip3,    port = 16103,  auth=const_.auth, },
				[4] = {	 ip = const_.manor_ip4,    port = 16104,  auth=const_.auth, },
				[5] = {	 ip = const_.manor_ip5,    port = 16105,  auth=const_.auth, },

				[6] = {	 ip = const_.manor_ip6,    port = 16106,  auth=const_.auth, },
				[7] = {	 ip = const_.manor_ip7,    port = 16107,  auth=const_.auth, },
				[8] = {	 ip = const_.manor_ip8,    port = 16108,  auth=const_.auth, },
				[9] = {	 ip = const_.manor_ip9,    port = 16109,  auth=const_.auth, },

				[11] = { ip = const_.manor_ip1,    port = 16101,  auth=const_.auth, },
			},

			ssdb_db_select = {
				[0]=0, [1]=1, [2]=2, [3]=3, [4]=4, [5]=5, [6]=6, [7]=7, [8]=8, [9]=9, comm=11,
			},
		},

		welfare =
		{
			ssdb_server =
			{
				[0] = {	 ip = const_.business_welfare_ip0,    port = 9000,  auth=const_.auth, },
				[1] = {	 ip = const_.business_welfare_ip0,    port = 9001,  auth=const_.auth, },
				[2] = {	 ip = const_.business_welfare_ip0,    port = 9002,  auth=const_.auth, },
				[3] = {	 ip = const_.business_welfare_ip0,    port = 9003,  auth=const_.auth, },
				[4] = {	 ip = const_.business_welfare_ip0,    port = 9004,  auth=const_.auth, },

				[5] = {	 ip = const_.business_welfare_ip1,    port = 9005,  auth=const_.auth, },
				[6] = {	 ip = const_.business_welfare_ip1,    port = 9006,  auth=const_.auth, },
				[7] = {	 ip = const_.business_welfare_ip1,    port = 9007,  auth=const_.auth, },
				[8] = {	 ip = const_.business_welfare_ip1,    port = 9008,  auth=const_.auth, },
				[9] = {	 ip = const_.business_welfare_ip1,    port = 9009,  auth=const_.auth, },

				[11] = { ip = const_.business_welfare_ip0,    port = 9000,  auth=const_.auth, },
			},

			ssdb_db_select = {
				[0]=0, [1]=1, [2]=2, [3]=3, [4]=4, [5]=5, [6]=6, [7]=7, [8]=8, [9]=9, comm=11,
			},
			ip_allow = {
    			check = 1,   --0=不检查  1=检查后只打日志   2=检查非法就报错
    			list  = '192.168.2.18 192.168.2.125 192.168.2.3 192.168.2.37 192.168.2.64'  ---空格分隔
			}
		},

		mall =
		{
			ssdb_server =
			{
				[0] = {	 ip = const_.business_mall_ip0,    port = 9000,  auth=const_.auth, },
				[1] = {	 ip = const_.business_mall_ip0,    port = 9001,  auth=const_.auth, },
				[2] = {	 ip = const_.business_mall_ip0,    port = 9002,  auth=const_.auth, },
				[3] = {	 ip = const_.business_mall_ip0,    port = 9003,  auth=const_.auth, },
				[4] = {	 ip = const_.business_mall_ip0,    port = 9004,  auth=const_.auth, },

				[5] = {	 ip = const_.business_mall_ip1,    port = 9005,  auth=const_.auth, },
				[6] = {	 ip = const_.business_mall_ip1,    port = 9006,  auth=const_.auth, },
				[7] = {	 ip = const_.business_mall_ip1,    port = 9007,  auth=const_.auth, },
				[8] = {	 ip = const_.business_mall_ip1,    port = 9008,  auth=const_.auth, },
				[9] = {	 ip = const_.business_mall_ip1,    port = 9009,  auth=const_.auth, },

				[11] = { ip = const_.business_mall_ip0,    port = 9000,  auth=const_.auth, },
			},

			ssdb_db_select = {
				[0]=0, [1]=1, [2]=2, [3]=3, [4]=4, [5]=5, [6]=6, [7]=7, [8]=8, [9]=9, comm=11,
			},
			ip_allow = {
				check = 1,   --0=不检查  1=检查后只打日志   2=检查非法就报错
				list  = '192.168.2.147 192.168.2.159'  ---空格分隔
			}
		},
		business_advert =
		{
			ssdb_server = {
				[0] = {	 ip = const_.business_advert_ip10,    port = 9000,  auth=const_.auth, },

				[1] = {	 ip = const_.business_advert_ip1,    port = 9001,  auth=const_.auth, },

				[2] = {	 ip = const_.business_advert_ip2,    port = 9002,  auth=const_.auth, }, 

				[3] = {	 ip = const_.business_advert_ip3,    port = 9003,  auth=const_.auth, },  

				[4] = {	 ip = const_.business_advert_ip4,    port = 9004,  auth=const_.auth, }, 

				[5] = {	 ip = const_.business_advert_ip5,    port = 9005,  auth=const_.auth, },

				[6] = {	 ip = const_.business_advert_ip6,    port = 9006,  auth=const_.auth, },

				[7] = {	 ip = const_.business_advert_ip7,    port = 9007,  auth=const_.auth, },  
				
				[8] = {	 ip = const_.business_advert_ip8,    port = 9008,  auth=const_.auth, },  

				[9] = {	 ip = const_.business_advert_ip9,    port = 9009,  auth=const_.auth, }, 

				[11] = { ip = const_.business_advert_ip10,    port = 9000,  auth=const_.auth, },
			},
			ssdb_db_select = {
				[0]=0, [1]=1, [2]=2, [3]=3, [4]=4, [5]=5, [6]=6, [7]=7, [8]=8, [9]=9, ["comm"]=11,
			},
			ip_allow = {
    			check = 1,
    			list  = '192.168.2.223 124.71.120.26 124.71.120.36 192.168.2.84',
			}
		},

		team ={
			ssdb_server = {
				[0] = {	 ip = const_.team_ip1,    port = 17100,  auth=const_.auth, },
				[1] = {	 ip = const_.team_ip1,    port = 17101,  auth=const_.auth, },
				[2] = {	 ip = const_.team_ip1,    port = 17102,  auth=const_.auth, },
				[3] = {	 ip = const_.team_ip1,    port = 17103,  auth=const_.auth, },
				[4] = {	 ip = const_.team_ip1,    port = 17104,  auth=const_.auth, },


				[5] = {	 ip = const_.team_ip2,    port = 17105,  auth=const_.auth, },
				[6] = {	 ip = const_.team_ip2,    port = 17106,  auth=const_.auth, },
				[7] = {	 ip = const_.team_ip2,    port = 17107,  auth=const_.auth, },
				[8] = {	 ip = const_.team_ip2,    port = 17108,  auth=const_.auth, },
				[9] = {	 ip = const_.team_ip2,    port = 17109,  auth=const_.auth, },
			},
			ssdb_db_select = {
				[0]=0, [1]=1, [2]=2, [3]=3, [4]=4, [5]=5, [6]=6, [7]=7, [8]=8, [9]=9,
			}
		},

	},


	mysql = {
		map = {
			mysql_server = {
				[0] = {	host='10.20.10.176', port=3306, database='db_map0', table_name='t_map_kv0', user='miniw_map', password='ODY4ODYwNjI0NzQx', },
				[1] = { host='10.20.10.176', port=3306, database='db_map1', table_name='t_map_kv1', user='miniw_map', password='ODY4ODYwNjI0NzQx', },
				[2] = { host='10.20.10.176', port=3306, database='db_map2', table_name='t_map_kv2', user='miniw_map', password='ODY4ODYwNjI0NzQx', },
				[3] = { host='10.20.10.176', port=3306, database='db_map3', table_name='t_map_kv3', user='miniw_map', password='ODY4ODYwNjI0NzQx', },
				[4] = { host='10.20.10.176', port=3306, database='db_map4', table_name='t_map_kv4', user='miniw_map', password='ODY4ODYwNjI0NzQx', },
				[5] = { host='10.20.10.176', port=3306, database='db_map5', table_name='t_map_kv5', user='miniw_map', password='ODY4ODYwNjI0NzQx', },
				[6] = { host='10.20.10.176', port=3306, database='db_map6', table_name='t_map_kv6', user='miniw_map', password='ODY4ODYwNjI0NzQx', },
				[7] = { host='10.20.10.176', port=3306, database='db_map7', table_name='t_map_kv7', user='miniw_map', password='ODY4ODYwNjI0NzQx', },
				[8] = { host='10.20.10.176', port=3306, database='db_map8', table_name='t_map_kv8', user='miniw_map', password='ODY4ODYwNjI0NzQx', },
				[9] = { host='10.20.10.176', port=3306, database='db_map9', table_name='t_map_kv9', user='miniw_map', password='ODY4ODYwNjI0NzQx', },
			},
			mysql_db_select = {
				[0]=0, [1]=1, [2]=2, [3]=3, [4]=4, [5]=5, [6]=6, [7]=7, [8]=8, [9]=9,
			},
		},

		mapbag = {
			mysql_server = {
				[0] = {
					host = '192.168.0.63', port = 3306, user = 'mmog', password = '0NWI2MTAgIC0K#',
					database='db_mapbag', table_name='t_miniw_kv',
				},
			},
			mysql_db_select = {
				[0]=0, [1]=0, [2]=0, [3]=0, [4]=0, [5]=0, [6]=0, [7]=0, [8]=0, [9]=0,
			},
	    },

		hot_update = { -- 客户端热更系统
			mysql_server = {  -- 华为云
				[0] = {
					host='192.168.1.36', port=3306, user='client_user', password='YTg0NzgzZGVhOGNiNmNiZjlkMzExYTkx',
					database='hot_update', table_name='t_miniw_kv',
				},
			},
			mysql_db_select = {
				[0]=0, [1]=0, [2]=0, [3]=0, [4]=0, [5]=0, [6]=0, [7]=0, [8]=0, [9]=0,
			},
	    },


		team_mysql = {
			-- 组队服， 华为云
			mysql_server = {
				[0] = {
					host='192.168.1.166', port=3306, user='team_user', password='ZGM2ZmNhOGI3NGNj',
					database='db_team', table_name = 't_miniw_kv',
				},
			},
			mysql_db_select = {
				[0]=0, [1]=0, [2]=0, [3]=0, [4]=0, [5]=0, [6]=0, [7]=0, [8]=0, [9]=0,
			},
			ip_allow = { check = 1,	list = '139.9.86.122 192.168.1.111',},
		},

		---配置比较大，使用独立文件
		acc_new = ns_acc_config0.mysql.acc_new,
		subsp   = ns_subsp_config0.mysql.subsp,
	},

	--- huawei-cloud GaussDB for redis
	redis = {

		posting_redis = {
			redis_server = {
				[0] = {	 ip=const_.posting_redis_ip, port =8635, auth='MjZkYjUwYzU3OTRj!#%' },
			},
			redis_db_select = {
				[0]=0, [1]=0, [2]=0, [3]=0, [4]=0, [5]=0, [6]=0, [7]=0, [8]=0, [9]=0,
			},
		},

	},


	---数据只存share_dict, 数据不落地写
	shm = {
		team_shm = {
			ip_allow = { check = 1,	list = '139.9.86.122 192.168.1.111',},
		},

		--- 社交
		social_shm = {
			ip_allow = { check = 1,	list = '120.24.64.132 183.240.204.116 10.20.10.89',},
		},
	},

};

return ns_config;

